<template>
	<div class="new-user">
		<panel :title="panelTitle" cname="homepanel">
			<div class="homepaneldiv">
				<router-link to="/a" class="left">
					<h4>
						下载APP
						<span>送500元礼包</span>
					</h4>
					<p>新手专享</p>
					<img :src="mockSrc" alt="" />
				</router-link>
				<div class="new-right">
					<router-link to="/a" class="new-right-txt">
						<div class="new-f1">
							<h4>领1200元新手福利优惠券</h4>
							<p>立即开通</p>
						</div>
						<img :src="mockSrc" alt="" />
					</router-link>
					<router-link to="/a" class="new-right-txt">
						<div class="new-f1">
							<h4>
								<span>打白条</span>享免息
							</h4>
							<p>立即开通京东白条</p>
						</div>
						<img :src="mockSrc" alt="" />
					</router-link>
				</div>
			</div>
		</panel>
	</div>
</template>

<script>
import Panel from '../core/panel.vue';
export default {
	components: {
		Panel
	},
	data() {
		return {
			mockSrc: './img/test.png',
			panelTitle: '新手特权'
		};
	}
};
</script>

<style lang="scss" scoped>
@import '~@/assets/css/main.scss';
.new-user {
	.homepanel {
		.homepaneldiv {
			padding: 30px;
			display: flex;
			a{
				display: block;
			}
			h4 {
				@include ellipsis;
				> span {
					color: #f00;
				}
			}
			.left {
				text-align: center;
				width: 50%;
				h4 {
					font-size: 26px;
				}

				img {
					display: inline-block;
					width: 70%;
				}
			}
			.new-right {
				border-left: 1px solid #eaeaea;
				width: 50%;
				.new-right-txt {
					display: flex;
					&:last-child{
						border-top: 1px solid #eaeaea;
						padding-top: 45px;
						margin-top: 45px;
					}
					>.new-f1{
						padding:0 10px;
						width: 190px;
						box-sizing: border-box;
						h4 {
							font-size: 22px;
						}

					}
					img {
						display: block;
						width: 90px;
            height:100%;
					}
				}
			}
			p {
				@include ellipsis;
				padding: 20px 0;
				font-size: 20px;
				color: #a1a1a1!important;
			}
		}
	}
}
</style>
